/**
 * 
 */
package org.perfect.batch;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author billmse
 *
 */
@ConfigurationProperties(prefix = "org.perfect.batch")
public class BatchProperties {
	
	private Scheduler scheduler = new Scheduler();

	private Executor executor = new Executor();
	
	private Datasource datasource = new Datasource();
	
	class Scheduler {

		private int poolSize = 10;

		public int getPoolSize() {
			return poolSize;
		}

		public void setPoolSize(int poolSize) {
			this.poolSize = poolSize;
		}

	}

	class Executor {

		private int corePoolSize = 20;

		public int getCorePoolSize() {
			return corePoolSize;
		}

		public void setCorePoolSize(int corePoolSize) {
			this.corePoolSize = corePoolSize;
		}

	}
	
	class Datasource {
		
		private String names;

		public String getNames() {
			return names;
		}

		public void setNames(String names) {
			this.names = names;
		}
		
	}
	
	public Scheduler getScheduler() {
		return scheduler;
	}

	public void setScheduler(Scheduler scheduler) {
		this.scheduler = scheduler;
	}

	public Executor getExecutor() {
		return executor;
	}

	public void setExecutor(Executor executor) {
		this.executor = executor;
	}

	public Datasource getDatasource() {
		return datasource;
	}

	public void setDatasource(Datasource datasource) {
		this.datasource = datasource;
	}

}
